package com.xdf.whiteaccount.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @program: carryout
 * @description: 数据库参数设置
 * @author: Zhang
 * @create: 2019-11-25 16:00
 **/
@ApiModel(description = "数据库参数设置", value = "com.xdf.carryout.entity.DatabaseSetting")
public class DatabaseSetting {
    @ApiModelProperty(value = "数据库主机名/地址", required = true, dataType = "String")
    private String host;
    @ApiModelProperty(value = "数据库登录名", required = true, dataType = "String")
    private String root;
    @ApiModelProperty(value = "数据库密码", required = true, dataType = "String")
    private String pwd;
    @ApiModelProperty(value = "数据库名称", required = true, dataType = "String")
    private String dbName;
    @ApiModelProperty(value = "备份路径", required = true, dataType = "String")
    private String backupPath;
    @ApiModelProperty(value = "备份文件名", required = true, dataType = "String")
    private String backupName;
    @ApiModelProperty(value = "恢复文件名", required = true, dataType = "String")
    private String restoreName;

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public String getRoot() {
        return root;
    }

    public void setRoot(String root) {
        this.root = root;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public String getDbName() {
        return dbName;
    }

    public void setDbName(String dbName) {
        this.dbName = dbName;
    }

    public String getBackupPath() {
        return backupPath;
    }

    public void setBackupPath(String backupPath) {
        this.backupPath = backupPath;
    }

    public String getBackupName() {
        return backupName;
    }

    public void setBackupName(String backupName) {
        this.backupName = backupName;
    }

    public String getRestoreName() {
        return restoreName;
    }

    public void setRestoreName(String restoreName) {
        this.restoreName = restoreName;
    }

    @Override
    public String toString() {
        return "DatabaseSetting{" +
                "host='" + host + '\'' +
                ", root='" + root + '\'' +
                ", pwd='" + pwd + '\'' +
                ", dbName='" + dbName + '\'' +
                ", backupPath='" + backupPath + '\'' +
                ", backupName='" + backupName + '\'' +
                ", restoreName='" + restoreName + '\'' +
                '}';
    }
}
